﻿using System.Web.Mvc;

namespace eBusiness.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "Admin/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
           // context.MapRoute(
           //    "Admin_Product",
           //    "Admin/Products/{action}/{id}/{category}/{status}/{issHot}/{isHomePage}/{isApproved}/{pageNumber}/{softBy}/{softDir}/",
           //    new
           //    {
           //        action = "Index",
           //        id = UrlParameter.Optional,
           //        category = UrlParameter.Optional,
           //        pageNumber = UrlParameter.Optional,
           //        isHot = UrlParameter.Optional,
           //        isHomePage = UrlParameter.Optional,
           //        isApproved = UrlParameter.Optional,
           //        softBy = UrlParameter.Optional,
           //        softDir = UrlParameter.Optional,
           //    }
           //);
        }
    }
}
